package com.cjkj.system.api.domain;

import com.cjkj.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 医院用户系统访问记录对象 t_hospital_user_login_log
 *
 * @author cjkj
 * @date 2024-08-30
 */
public class THospitalUserLoginLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 用户账号 */
    private String userName;

    /** 登录IP地址 */
    private String ipAddr;

    /** 登录状态（0成功 1失败） */
    private String status;

    /** 提示信息 */
    private String msg;

    /** 访问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date accessTime;

    /** 登录地点 */
    private String loginLocation;

    public void setLogId(Long logId)
    {
        this.logId = logId;
    }

    public Long getLogId()
    {
        return logId;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setIpAddr(String ipAddr)
    {
        this.ipAddr = ipAddr;
    }

    public String getIpAddr()
    {
        return ipAddr;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setMsg(String msg)
    {
        this.msg = msg;
    }

    public String getMsg()
    {
        return msg;
    }
    public void setAccessTime(Date accessTime)
    {
        this.accessTime = accessTime;
    }

    public Date getAccessTime()
    {
        return accessTime;
    }

    public String getLoginLocation() {
        return loginLocation;
    }

    public void setLoginLocation(String loginLocation) {
        this.loginLocation = loginLocation;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("logId", getLogId())
                .append("userName", getUserName())
                .append("ipAddr", getIpAddr())
                .append("status", getStatus())
                .append("msg", getMsg())
                .append("accessTime", getAccessTime())
                .append("loginLocation", getLoginLocation())
                .toString();
    }
}
